<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>047-知识点.html</title>
	<style>
		*{
			margin: 0;
			padding: 0;
		}
		div{
			width: 100px;
			height: 100px;
			border: 1px solid #000;
			margin-top: 10px;
		}
	</style>
</head>
<body>
	<div>div1</div>
	<div class="div2">div2</div>
	<div style="display: none;">div3</div>
</body>
<script src="js/jquery-1.12.4.js"></script>
<script>
	$(function(){
		function fn(){
			console.log(this);
		}
		/*
		fn();
		var fn1 = fn.bind({name:'Chris'});

		var fn1 = $.proxy(fn,{name:'Chris'});
		fn1();
		*/
		// console.log($('div').is('.div3'));
		console.log($('div:hidden'));
		console.log($('div:visible'));

		$('div').hover(function(){
			console.log('over');
		},function(){
			console.log('out');
		});
	})
</script>
</html>